//
//  ProductNormalCell.h
//  loveKangaroo
//
//  Created by 趣看 on 15/3/4.
//  Copyright (c) 2015年 SeeKool Inc. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "UserProduct.h"


@protocol ProductNormalCellDelegate <NSObject>

@optional

//点击产品图片显示详情
- (void)clickPicture;

//点击备注
- (void)clickRemark;

//确认修改产品信息
- (void)changeProduct:(UserProduct *)procuct withIndexPath:(NSIndexPath *)indexpath;

@end

@interface ProductNormalCell : UITableViewCell <UIGestureRecognizerDelegate>

//左右两个大的视图
@property (weak, nonatomic) IBOutlet UIView *leftView;
@property (weak, nonatomic) IBOutlet UIView *rightView;

//左边的那个视图的
//产品图片
@property (weak, nonatomic) IBOutlet UIImageView *leftImage;
//产品的品牌
@property (weak, nonatomic) IBOutlet UILabel *pinPai;
//产品名称
@property (weak, nonatomic) IBOutlet UILabel *productName;
//产品的参考购买地
@property (weak, nonatomic) IBOutlet UILabel *place;
//产品的备注
@property (weak, nonatomic) IBOutlet UILabel *remarks;




//两个大的视图切换
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *leftSpace;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *rightSpace;

//控制两个浮动视图 买不到 买到了
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *btnX;


//右边的cell
@property (weak, nonatomic) IBOutlet UIImageView *rightImage;
//价格
@property (weak, nonatomic) IBOutlet UITextField *price;

- (void)addleftPanGesture;


@property (nonatomic, retain) id <ProductNormalCellDelegate> delegate;


@property (nonatomic,strong)UserProduct *product;
@property (nonatomic,strong)NSIndexPath *indexPath;

@end
